package com.hongdee.base.imp.dao.impl;

import com.hongdee.base.basedao.impl.BaseDaoImpl;
import com.hongdee.base.imp.dao.IDataEntityPropertyDao;
import com.hongdee.base.imp.entity.TDataEntityProperty;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by My on 2017/2/15.
 */
@Service
public class DataEntityPropertyDaoImpl extends BaseDaoImpl implements IDataEntityPropertyDao {

//    @Override
//    public List<TDataEntityProperty> getListByEntityId(String dataEntityId) {
//        try {
//            List<Map> mapList = this.getJdbcDao().queryForMapListBySqlWithParams("select * from T_DATA_ENTITY_PROPERTY where Entity_ID = ?", dataEntityId);
//
//            if ( null == mapList)
//                return  null;
//
//            List<TDataEntityProperty> propList = new ArrayList<TDataEntityProperty>();
//            for ( int i = 0; i < mapList.size(); i++ )
//            {
//                propList.add(new TDataEntityProperty(mapList.get(i)));
//            }
//
//            return propList;
//        }
//        catch ( Exception e)
//        {
//            e.printStackTrace();
//        }
//
//        return null;
//    }
}
